package com.fss.approval1.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.fss.approval1.mapper.LoanApproval1Mapper;
import com.fss.approval1.domain.LoanApproval1;
import com.fss.approval1.service.ILoanApproval1Service;

/**
 * 贷款审核Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-02
 */
@Service
public class LoanApproval1ServiceImpl implements ILoanApproval1Service 
{
    @Autowired
    private LoanApproval1Mapper loanApproval1Mapper;

    /**
     * 查询贷款审核
     * 
     * @param approvalId 贷款审核主键
     * @return 贷款审核
     */
    @Override
    public LoanApproval1 selectLoanApproval1ByApprovalId(Long approvalId)
    {
        return loanApproval1Mapper.selectLoanApproval1ByApprovalId(approvalId);
    }

    /**
     * 查询贷款审核列表
     * 
     * @param loanApproval1 贷款审核
     * @return 贷款审核
     */
    @Override
    public List<LoanApproval1> selectLoanApproval1List(LoanApproval1 loanApproval1)
    {
        return loanApproval1Mapper.selectLoanApproval1List(loanApproval1);
    }

    /**
     * 新增贷款审核
     * 
     * @param loanApproval1 贷款审核
     * @return 结果
     */
    @Override
    public int insertLoanApproval1(LoanApproval1 loanApproval1)
    {
        return loanApproval1Mapper.insertLoanApproval1(loanApproval1);
    }

    /**
     * 修改贷款审核
     * 
     * @param loanApproval1 贷款审核
     * @return 结果
     */
    @Override
    public int updateLoanApproval1(LoanApproval1 loanApproval1)
    {
        return loanApproval1Mapper.updateLoanApproval1(loanApproval1);
    }

    /**
     * 批量删除贷款审核
     * 
     * @param approvalIds 需要删除的贷款审核主键
     * @return 结果
     */
    @Override
    public int deleteLoanApproval1ByApprovalIds(Long[] approvalIds)
    {
        return loanApproval1Mapper.deleteLoanApproval1ByApprovalIds(approvalIds);
    }

    /**
     * 删除贷款审核信息
     * 
     * @param approvalId 贷款审核主键
     * @return 结果
     */
    @Override
    public int deleteLoanApproval1ByApprovalId(Long approvalId)
    {
        return loanApproval1Mapper.deleteLoanApproval1ByApprovalId(approvalId);
    }
}
